package com.drools.drools.modify;

import com.drools.drools.BaseTest;
import com.drools.drools.model.Person;
import org.junit.Test;
import org.kie.api.runtime.KieSession;

/**
 * Created with IntelliJ IDEA.
 * User: mishuai
 * Date: 2019-05-09
 * Time: 08:11
 * Des:
 */
public class ModifyTest extends BaseTest{

    @Test
    public void test(){
        KieSession kieSession=this.getKieSessionBySessionName("modifyDemo-rules");
        Person person=new Person(21);
        kieSession.insert(person);
        kieSession.fireAllRules();
        kieSession.dispose();
    }
}
